import axios from "@/utils/request";
enum Api {
  login = "/login",
  news = "/news",
  auth = "permission",
}
export const login = ({
  passWord,
  userName,
}: {
  passWord: string;
  userName: string;
}) => {
  return axios.post(Api.login, { passWord, userName });
};
export const reqPermission = ({ auth }: { auth: string }) => {
  return axios.post(Api.auth, { auth });
};
export const deleteNews = (id: string) => {
  return axios.post(Api.login, { id });
};
